<?php
/*
 * This is extra-test page.
 */
$rp = $_SERVER['REQUEST_URI'];
?>
<head>
    <style>
        #dl,#dl1, #dl2,#dl3,#dl4,#dl5,#dl6,#dl7,#dl8,#dl9  {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
    </style>
</head>
<script>
    $(function(){
       
        $('#dl,#dl1,#dl2,,#dl3,#dl4,#dl5,#dl6,#dl7,#dl8,#dl9').click(function(){
            $('#dialog').dialog('open');
            return false;
        });
       
        $('#dialog').dialog({
            width : 400,
            height : 250,
            modal : true,
            autoOpen : false,
            buttons: {                      
                      
            }
        });
      

    });
</script>
<div class="demo">

    <div id="accordion" style="font-size: 12px;" >
        <!-- 1-->
        <h3><a href="#">Serum Progesterone Blood Test</a></h3>
        <div>
            <p>This test is done to confirm that you are ovulating. Blood samples are drawn in the middle of the luteal phase (that is, on day 21 of a 28day cycle). If the progesterone level is significantly elevated, it's likely that you're ovulating. More often, however, your doctor will assume that your irregular cycles indicate an ovulation problem, and will order a more extensive blood test.</p>
            <center><p><a href="#" id="dl" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
        </div>
        <!--2-->
        <h3><a href="#">Prolactin Blood Test</a></h3>
        <div>
            <p>Prolactin is a hormone that inhibits ovulation in nursing mothers. If you have excessively high levels of prolactin, you may have a benign, pituitary tumor, in which case your doctor may refer you for further tests, such as a CAT scan.</p>
            <center><p><a href="#" id="dl1" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
        </div>
        <!-- 3--> 
        <h3><a href="#">Thyroid Hormone Blood Test</a></h3>
        <div>
            <p>Abnormal amounts of thyroid hormone can indicate that you have problems with your thyroid. Women with under active thyroid glands (hypothyroidism) are prone to menstrual and ovulation disorders. Those with overactive thyroids (hyperthyroidism) have more variable menstrual patterns but can become seriously ill if the condition is not recognized and treated during pregnancy.</p>
            <center><p><a href="#" id="dl2" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
        </div>
        <!-- 4--> 
        <h3><a href="#">Blood Tests for Other Reproductive Hormones</a></h3>
        <div>
            <p>Depending on the results of your medical history and your physical examination (your degree of menstrual irregularity, if any, or any problems with excessive body hair growth, for example), your doctor may need to obtain specific hormone levels to uncover a variety of endocrinologic conditions. This may involve testing at specific times of the cycle or testing after receiving certain medications.</p>
            <center><p><a href="#" id="dl3" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
        </div>
        <!-- 5--> 
        <h3><a href="#">Hysterosalpingogram (HSG)</a></h3>
        <div>
            <p>A hysterosalpingogram is used to determine whether any damage has occurred to your fallopian tubes. It involves filling your reproductive tract with a special type of dye that shows up on X-rays. The test which is conducted during the follicular phase involves inserting dye into your uterus through a tube that is placed through your cervix. If one or both of your tubes are blocked, the dye will outline where the obstruction lies. If only one tube appears to be blocked, it may simply be due to the fact that the open tube provided the pathway of least resistance to the dye. An HSG can also be useful in identifying the locations of any scarring or growths such as fibroids in your uterus Some women particularly those with blocked tubes find this procedure to be quite painful, so you might want to talk with your doctor about the advisability of taking a pain medication prior to the procedure. Note: The value of HSG as a diagnostic tool is clear. What is more controversial is whether the procedure can actually enhance fertility. There has long been an anecdotal claim among doctors treating infertile patients that there is a blip in the fertility curve in the months following HSG. Studies have demonstrated, however, that this enhancement is seen only with the use of oil-based dyes and not with water-soluble dyes.</p>
            <center><p><a href="#" id="dl4" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
        </div>
        <!-- 6--> 
        <h3><a href="#">Endometrial Biopsy</a></h3>
        <div>
            <p>An endometrial biopsy can confirm whether you're ovulating and indicate whether your endometrial tissue is sufficiently hospitable to allow a fertilized egg to implant. The biopsy is taken within several days of when you are expected to start menstruating. The doctor inserts a speculum in your vagina and cleanses your cervix, and then a tissue sample is removed from the uterine lining through a combination of suction and gentle scraping. If you're concerned that this procedure may cause a miscarriage in the event that you have managed to conceive, you may find it reassuring to know that the odds of having an endometrial biopsy cause a miscarriage are extremely small. If you are worried about this possibility, you might choose to use some sort of contraceptive during the cycle in which the endometrial biopsy will be taken or plan to undergo a sensitive blood pregnancy test the day before the procedure to determine whether you are, in fact, pregnant.</p>
            <center><p><a href="#" id="dl5" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
        </div>
        <!-- 7-->  
        <h3><a href="#">Laparoscopy</a></h3>
        <div>
            <p>Laparoscopy is a test designed to detect obstructions in your fallopian tubes. It's considerably more high-tech and risky than an HSG, however, and can provide more detailed information. The test involves inserting a fiber-optic scope into your abdomen to look for damage caused by endometriosis, pelvic inflammatory disease, or adhesions from any pelvic surgery, and to look for physical evidence that you are ovulating. You need to go under general anesthetic to have the procedure, and you may experience some soreness in your abdomen and shoulders afterward.</p>
            <center><p><a href="#" id="dl6" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
        </div>
        <!-- 8-->
        <h3><a href="#">Hysteroscopy</a></h3>
        <div>
            <p>A hysteroscopy also involves inserting a fiber-optic scope into the body, but in this case, it is inserted into the uterus through the cervix. It is used to detect abnormal growths or anatomical defects in your uterus when your HSG suggests that these may play a role in your fertility problems.</p>
            <center><p><a href="#" id="dl7" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
        </div>
        <!-- 9-->
        <h3><a href="#">Postcoital Test</a></h3>
        <div>
            <p>The postcoital test is used to assess what happens once the sperm make it inside the vagina. You are asked to have sexual intercourse just before you expect to ovulate and to show up at your doctor's office at a designated time some 2 to 16 hours later. The doctor then uses a syringe or pipette to extract at least two samples of cervical mucus from the cervical canal, and examines it under a microscope to determine how many sperm are alive and swimming. The test can show whether your mucus is inhospitable to your partner's sperm; it can also suggest whether there are antibodies in either your body or your partner's body that are interfering with sperm production or killing sperm; and whether the root of the problem is the fact that sperm is not being deposited closely enough to the cervix (as can be the case if the male partner experiences premature ejaculation). As you might expect, many couples dislike having to have sexual intercourse upon demand and then rush off to the laboratory. That's why many doctors encourage couples to make love the night before and then come into the laboratory the next morning. If you fail the postcoital test, you will likely be asked to repeat it to ensure that the problem lies with you and your partner, not with the timing.</p>
            <center><p><a href="#" id="dl8" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
        </div>
        <!-- 10-->
        <h3><a href="#">Ultrasound</a></h3>
        <div>
            <p>Ultrasound is used during the basic infertility evaluation only if the internal or pelvic exam is inconclusive or significant abnormalities are suspected. Sometimes a saline solution is injected into the uterus in order to get a better look at the uterine interior, where problems such as polyps and fibroids may be seen. When this is done, the procedure is known as sonohysterography or hysterosonography.</p>
            <center><p><a href="#" id="dl9" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
        </div>
    </div>       
</div><!-- End accordion -->



<div id="dialog" title="Upload Documents"  >
    <p>
    <form enctype="multipart/form-data" action="../../plugins/upload_file.php" method="POST">
        <input type="hidden" name="MAX_FILE_SIZE" value="100000000000" />
<!--        <input type="hidden" name="path" value="../storage/pre-pregnancy/" />-->
        <input type="hidden" name="rp" value="<?php echo $rp; ?>" />
        <input type="hidden" name="bid" value="<?= $_COOKIE['bid'] ?>" />        
        <input type="hidden" name="mdir" value="pre-pregnancy" />
        <table>
            <tr><td><input type="file" name="uploadedfile" required /></td></tr>
            <tr><td>
                    <select name="attr">
                        <option value="Serum Progesterone Blood Test" >Serum Progesterone Blood Test</option>
                        <option value="Prolactin Blood Test">Prolactin Blood Test</option>
                        <option value="Thyroid Hormone Blood Test">Thyroid Hormone Blood Test</option>
                        <option value="Blood Tests for Other Reproductive Hormones" >Blood Tests for Other Reproductive Hormones</option>
                        <option value="Hysterosalpingogram">Hysterosalpingogram (HSG)</option>
                        <option value="Endometrial Biopsy" >Endometrial Biopsy</option>
                        <option value="Laparoscopy">Laparoscopy</option>
                        <option value="Hysteroscopy">Hysteroscopy</option>
                        <option value="Postcoital Test">Postcoital Test</option>
                        <option value="Ultrasound">Ultrasound</option>
                    </select>
                </td></tr>
            <tr><td><input type="submit" value="Upload File" /></td></tr>
        </table>                        
    </form>

</p>
</div>

<?php
if ($_GET['s'] == y) {
    ?>
    <script>
        $(function(){
                
            $('#dl0').dialog({
                width : 200,
                modal : true
            });

        });
    </script>
    <div id="dl0" title="Successfull">
        <p>SuccessFull</p>
    </div>
    <?php
} elseif ($_GET['s'] == n) {
    ?>
    <script>
        $(function(){
                
            $('#dl00').dialog({
                width : 200,
                modal : true
            });

        });
    </script>
    <div id="dl00" title="Unsuccessful">
        <p>Opps...!!! Got some error :( <br/> Try Again...</p>
    </div>
<?php } ?>


